package org.dromara.system.elastic;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface EsQueryType {
    EsFieldType type();
    String field() default "";

    enum EsFieldType {
        KEYWORD,
        TEXT,
        NUMBER,
        DATE,
        BOOLEAN,
        LIKE,
        IN,
        // 可以添加更多类型
    }
}
